package saxion.speelveld.spaceengineer.buildings;

import saxion.speelveld.spaceengineer.R;
import saxion.speelveld.spaceengineer.model.ProducingBuilding;
import saxion.speelveld.spaceengineer.model.Resource;
import saxion.speelveld.spaceengineer.model.ResourceType;

public class WaterPurificator extends ProducingBuilding
{

	public WaterPurificator()
	{
		super(1, 1);
		super.setBuildingName(WaterPurificator.this.getClass().getSimpleName());
		super.setBuildingExplanation("if water is present on the planet this building will increase the amount of "
			+ "useable water on the planet.");
		super.resourceCosts.add(new Resource(ResourceType.MONEY, 200));
		super.resourceCosts.add(new Resource(ResourceType.ELECTRICITY, 15));
		super.resourceCosts.add(new Resource(ResourceType.GLASS, 40));
		super.resourceCosts.add(new Resource(ResourceType.METAL, 30));

		super.addResourceProduceGain(new Resource(ResourceType.WATER, 1, true));

		// A la Chef Mitchell
		/**
		 * super.setResourcesProduced(ResourceType.WATER); super.setResourcesProduced(ResourceType.HAPPINESS); if
		 * (super.getResourcesProduced() == ResourceType.ELECTRICITY) { super.setProductioncapacity(10); } if
		 * (super.getResourcesProduced() == ResourceType.HAPPINESS) { super.setProductioncapacity(1); }
		 * super.setResourcesProduced(ResourceType.WATER); super.setProductioncapacity(1);
		 */
		super.resourceImages = new int[1];
		super.resourceImages[0] = R.drawable.waterpurificator_0;
		super.setPreviewResourceImageId(R.drawable.waterpurificator);
	}

	// @Override
	// public int produceGoods()
	// {
	// return 0;
	// }

}
